class MathUtil { 


        public static double factorial(int x) {         // This method computes x!
                if (x < 0)                              // Check for bad input
                        return 0.0;                     // If bad, return 0
                double fact = 1.0;                      // Begin with an initial value


                while(x > 1) {                          // Loop until x equals 1
                        fact = fact * x;                // Multiply by x each time
                        x = x - 1;                      // And then decrement x
                }                                       // Jump back to start of loop
        
return fact;                                            // Return the result
        }                                               // factorial() ends here
        
        
        public static double Logarithm(double a){	// Static
                return Math.log10(a);
        }
}




public class Vladimir{
        
        public static void main(String[] args) {
                int num = 5;                            //float num = 10.9f - Integer;
                
                
                System.out.println(MathUtil.factorial(num));
                        
                for (int i = 0; i < 25; i++){
                        System.out.println(MathUtil.Logarithm(i));      
                        
                }
                        
        }       


}
